package cn.dingdan.sercice.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.dingdan.dao.WaiterDao;
import cn.dingdan.pojo.Waiter;
import cn.dingdan.sercice.WaiterService;

@Service("waiterServiceImpl")
public class WaiterServiceImpl implements WaiterService{
	
	@Resource(name="waiterDao")
	private WaiterDao waiterDao;
	
	@Override
	public List<Waiter> getLists() {
		return waiterDao.getLists();
	}

	@Override
	public int addWaiter(Waiter waiter) {
		return waiterDao.addWaiter(waiter);
	}

	@Override
	public int delWaiter(Integer waiterId) {
		return waiterDao.delWaiter(waiterId);
	}

	@Override
	public int updateWaiter(Waiter waiter) {
		return waiterDao.updateWaiter(waiter);
	}

	@Override
	public Waiter getLogin(String code, String password) {
		
		return waiterDao.getLogin(code,password);
	}

}
